const _ = require("lodash");

// 统计连续段长度出现的频率
function getLengthFrequency(consecutiveData) {
  const frequency = _.countBy(consecutiveData);
  return frequency;
}

module.exports = getLengthFrequency;
